function printAttackRoll( attackResult ) {
	var combat_log_count = combatLogCount();
	
	var response = "<div id=\"attack_roll-" + combat_log_count + "\" ><p style='margin:0px;'>Attack roll: <span class=\"bold\">" + attackResult.attack.unadjusted + "</span>" + "<span class=\"attack_roll_detail\">(11 - " + ( 11 - attackResult.attack.unadjusted ) + ")</span>";
	response = response + printDiePool( attackResult.attack.dice );
	response = response + "</p>";
	response = response + "</div>"; /*
	response = response + "<div id=\"hit_location-" + combat_log_count + "\"><p style='margin:0px;'>Attack strikes in the " + attackResult.location.location + ", doing " + attackResult.location.BODYx + "x BODY, " + attackResult.location.nSTUNx + "x nSTUN / " + attackResult.location.kSTUNx + "x kSTUN.";
	response = response + printDiePool( attackResult.location.dice );
	response = response + "</p>";
	response = response + "</div>"; */
	var active_entry_id = combatLogFindActive();
	if( active_entry_id !== false ) {
		combatLogAppend( active_entry_id , response );
		} else {
		combatLogEntry( response );
		}
	}

function printHitLocation ( locationResult ) {
	var combat_log_count = combatLogCount();
	var response = "<div id=\"hit_location-" + combat_log_count + "\"><p style='margin:0px;'>Attack strikes in the <span class=\"bold\">" + locationResult.location + "</span> (" + locationResult.BODYx + "x BODY, " + locationResult.nSTUNx + "x nSTUN, " + locationResult.kSTUNx + "x kSTUN)";
	response = response + printDiePool( locationResult.dice );
	response = response + "</p>";
	response = response + "</div>";
	
	var active_entry_id = combatLogFindActive();
	if( active_entry_id !== false ) {
		combatLogAppend( active_entry_id , response );
		} else {
		combatLogEntry( response );
		}

	}

function printDiePool( rollDice_result ) {
	var die_pool = "<span class='die_pool'>";
	for ( ii=0 ; ii < rollDice_result['dice'].length ; ii++ ) {
		die_pool += "<img class='die_face' src='img/die-face-" + rollDice_result['dice'][ii] + ".png' alt='" + rollDice_result['dice'][ii] + "' title='" + rollDice_result['dice'][ii] + "' />";
		}
		
	if ( rollDice_result['pip'] == 1 ) {
		die_pool += "<img class='die_face' src='img/die-face-1-special.png' alt='pip' />";
		}
	if ( rollDice_result['minus_one'] ) {
		die_pool += "<img class='die_face' src='img/die-face-" + rollDice_result['minus_one'] + "-special.png' alt='" + rollDice_result['minus_one'] + "-1' title='" + rollDice_result['minus_one'] + "-1' />";
		}
	if ( rollDice_result['half_die'] ) {
		die_pool += "<img class='die_face' src='img/die-face-" + rollDice_result['half_die'] + "-special.png' alt='" + rollDice_result['half_die'] + " (half die)' title='" + rollDice_result['half_die'] + " (half die)' />";
		}
		
	die_pool += "</span>";
	return die_pool;
	}